package com.lyl.projectspringboot.dto;

import jakarta.validation.constraints.Pattern;
import lombok.Data;
import lombok.NonNull;

@Data
public class LoginDto {

    @Pattern(regexp = "^[a-zA-Z0-9_-]", message = "UID格式错误")
    private String userID;
    @Pattern(regexp = "^1[3-9]\\d{8}$", message = "手机号格式不正确")
    private String userPhone;
    @NonNull
    private String userPWD;

}
